<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - iris.info - /usr/include/bits/stdio2.h</title>
  <link rel="stylesheet" type="text/css" href="../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../../index.html">directory</a> - <a href="index.html">usr/include/bits</a> - stdio2.h</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>iris.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-05-24</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">73</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">5.5 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">4</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : /* Checking macros for stdio functions.
<span class="lineNum">       2 </span>                :    Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
<span class="lineNum">       3 </span>                :    This file is part of the GNU C Library.
<span class="lineNum">       4 </span>                : 
<span class="lineNum">       5 </span>                :    The GNU C Library is free software; you can redistribute it and/or
<span class="lineNum">       6 </span>                :    modify it under the terms of the GNU Lesser General Public
<span class="lineNum">       7 </span>                :    License as published by the Free Software Foundation; either
<span class="lineNum">       8 </span>                :    version 2.1 of the License, or (at your option) any later version.
<span class="lineNum">       9 </span>                : 
<span class="lineNum">      10 </span>                :    The GNU C Library is distributed in the hope that it will be useful,
<span class="lineNum">      11 </span>                :    but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      12 </span>                :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
<span class="lineNum">      13 </span>                :    Lesser General Public License for more details.
<span class="lineNum">      14 </span>                : 
<span class="lineNum">      15 </span>                :    You should have received a copy of the GNU Lesser General Public
<span class="lineNum">      16 </span>                :    License along with the GNU C Library; if not, write to the Free
<span class="lineNum">      17 </span>                :    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
<span class="lineNum">      18 </span>                :    02111-1307 USA.  */
<span class="lineNum">      19 </span>                : 
<span class="lineNum">      20 </span>                : #ifndef _STDIO_H
<span class="lineNum">      21 </span>                : # error &quot;Never include &lt;bits/stdio2.h&gt; directly; use &lt;stdio.h&gt; instead.&quot;
<span class="lineNum">      22 </span>                : #endif
<span class="lineNum">      23 </span>                : 
<span class="lineNum">      24 </span>                : extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,
<span class="lineNum">      25 </span>                :                           __const char *__restrict __format, ...) __THROW;
<span class="lineNum">      26 </span>                : extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
<span class="lineNum">      27 </span>                :                            __const char *__restrict __format,
<span class="lineNum">      28 </span>                :                            _G_va_list __ap) __THROW;
<span class="lineNum">      29 </span>                : 
<span class="lineNum">      30 </span>                : #ifdef __va_arg_pack
<span class="lineNum">      31 </span>                : __extern_always_inline int
<span class="lineNum">      32 </span><span class="lineNoCov">              0 : __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))</span>
<span class="lineNum">      33 </span>                : {
<span class="lineNum">      34 </span>                :   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
<span class="lineNum">      35 </span><span class="lineNoCov">              0 :                                   __bos (__s), __fmt, __va_arg_pack ());</span>
<span class="lineNum">      36 </span>                : }
<span class="lineNum">      37 </span>                : #elif !defined __cplusplus
<span class="lineNum">      38 </span>                : # define sprintf(str, ...) \
<span class="lineNum">      39 </span>                :   __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \
<span class="lineNum">      40 </span>                :                            __VA_ARGS__)
<span class="lineNum">      41 </span>                : #endif
<span class="lineNum">      42 </span>                : 
<span class="lineNum">      43 </span>                : __extern_always_inline int
<span class="lineNum">      44 </span><span class="lineNoCov">              0 : __NTH (vsprintf (char *__restrict __s, __const char *__restrict __fmt,</span>
<span class="lineNum">      45 </span>                :                  _G_va_list __ap))
<span class="lineNum">      46 </span>                : {
<span class="lineNum">      47 </span>                :   return __builtin___vsprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
<span class="lineNum">      48 </span><span class="lineNoCov">              0 :                                    __bos (__s), __fmt, __ap);</span>
<span class="lineNum">      49 </span>                : }
<span class="lineNum">      50 </span>                : 
<span class="lineNum">      51 </span>                : #if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
<span class="lineNum">      52 </span>                : 
<span class="lineNum">      53 </span>                : extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
<span class="lineNum">      54 </span>                :                            size_t __slen, __const char *__restrict __format,
<span class="lineNum">      55 </span>                :                            ...) __THROW;
<span class="lineNum">      56 </span>                : extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
<span class="lineNum">      57 </span>                :                             size_t __slen, __const char *__restrict __format,
<span class="lineNum">      58 </span>                :                             _G_va_list __ap) __THROW;
<span class="lineNum">      59 </span>                : 
<span class="lineNum">      60 </span>                : # ifdef __va_arg_pack
<span class="lineNum">      61 </span>                : __extern_always_inline int
<span class="lineNum">      62 </span><span class="lineNoCov">              0 : __NTH (snprintf (char *__restrict __s, size_t __n,</span>
<span class="lineNum">      63 </span>                :                  __const char *__restrict __fmt, ...))
<span class="lineNum">      64 </span>                : {
<span class="lineNum">      65 </span>                :   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
<span class="lineNum">      66 </span><span class="lineNoCov">              0 :                                    __bos (__s), __fmt, __va_arg_pack ());</span>
<span class="lineNum">      67 </span>                : }
<span class="lineNum">      68 </span>                : # elif !defined __cplusplus
<span class="lineNum">      69 </span>                : #  define snprintf(str, len, ...) \
<span class="lineNum">      70 </span>                :   __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \
<span class="lineNum">      71 </span>                :                             __VA_ARGS__)
<span class="lineNum">      72 </span>                : # endif
<span class="lineNum">      73 </span>                : 
<span class="lineNum">      74 </span>                : __extern_always_inline int
<span class="lineNum">      75 </span><span class="lineNoCov">              0 : __NTH (vsnprintf (char *__restrict __s, size_t __n,</span>
<span class="lineNum">      76 </span>                :                   __const char *__restrict __fmt, _G_va_list __ap))
<span class="lineNum">      77 </span>                : {
<span class="lineNum">      78 </span>                :   return __builtin___vsnprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
<span class="lineNum">      79 </span><span class="lineNoCov">              0 :                                     __bos (__s), __fmt, __ap);</span>
<span class="lineNum">      80 </span>                : }
<span class="lineNum">      81 </span>                : 
<span class="lineNum">      82 </span>                : #endif
<span class="lineNum">      83 </span>                : 
<span class="lineNum">      84 </span>                : #if __USE_FORTIFY_LEVEL &gt; 1
<span class="lineNum">      85 </span>                : 
<span class="lineNum">      86 </span>                : extern int __fprintf_chk (FILE *__restrict __stream, int __flag,
<span class="lineNum">      87 </span>                :                           __const char *__restrict __format, ...);
<span class="lineNum">      88 </span>                : extern int __printf_chk (int __flag, __const char *__restrict __format, ...);
<span class="lineNum">      89 </span>                : extern int __vfprintf_chk (FILE *__restrict __stream, int __flag,
<span class="lineNum">      90 </span>                :                            __const char *__restrict __format, _G_va_list __ap);
<span class="lineNum">      91 </span>                : extern int __vprintf_chk (int __flag, __const char *__restrict __format,
<span class="lineNum">      92 </span>                :                           _G_va_list __ap);
<span class="lineNum">      93 </span>                : 
<span class="lineNum">      94 </span>                : # ifdef __va_arg_pack
<span class="lineNum">      95 </span>                : __extern_always_inline int
<span class="lineNum">      96 </span><span class="lineNoCov">              0 : fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)</span>
<span class="lineNum">      97 </span>                : {
<span class="lineNum">      98 </span>                :   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
<span class="lineNum">      99 </span><span class="lineNoCov">              0 :                         __va_arg_pack ());</span>
<span class="lineNum">     100 </span>                : }
<span class="lineNum">     101 </span>                : 
<span class="lineNum">     102 </span>                : __extern_always_inline int
<span class="lineNum">     103 </span><span class="lineNoCov">              0 : printf (__const char *__restrict __fmt, ...)</span>
<span class="lineNum">     104 </span>                : {
<span class="lineNum">     105 </span><span class="lineNoCov">              0 :   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());</span>
<span class="lineNum">     106 </span>                : }
<span class="lineNum">     107 </span>                : # elif !defined __cplusplus
<span class="lineNum">     108 </span>                : #  define printf(...) \
<span class="lineNum">     109 </span>                :   __printf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
<span class="lineNum">     110 </span>                : #  define fprintf(stream, ...) \
<span class="lineNum">     111 </span>                :   __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
<span class="lineNum">     112 </span>                : # endif
<span class="lineNum">     113 </span>                : 
<span class="lineNum">     114 </span>                : __extern_always_inline int
<span class="lineNum">     115 </span><span class="lineNoCov">              0 : vprintf (__const char *__restrict __fmt, _G_va_list __ap)</span>
<span class="lineNum">     116 </span>                : {
<span class="lineNum">     117 </span>                : #ifdef __USE_EXTERN_INLINES
<span class="lineNum">     118 </span><span class="lineNoCov">              0 :   return __vfprintf_chk (stdout, __USE_FORTIFY_LEVEL - 1, __fmt, __ap);</span>
<span class="lineNum">     119 </span>                : #else
<span class="lineNum">     120 </span>                :   return __vprintf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __ap);
<span class="lineNum">     121 </span>                : #endif
<span class="lineNum">     122 </span>                : }
<span class="lineNum">     123 </span>                : 
<span class="lineNum">     124 </span>                : __extern_always_inline int
<span class="lineNum">     125 </span>                : vfprintf (FILE *__restrict __stream,
<span class="lineNum">     126 </span><span class="lineNoCov">              0 :           __const char *__restrict __fmt, _G_va_list __ap)</span>
<span class="lineNum">     127 </span>                : {
<span class="lineNum">     128 </span><span class="lineNoCov">              0 :   return __vfprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, __ap);</span>
<span class="lineNum">     129 </span>                : }
<span class="lineNum">     130 </span>                : 
<span class="lineNum">     131 </span>                : # ifdef __USE_GNU
<span class="lineNum">     132 </span>                : 
<span class="lineNum">     133 </span>                : extern int __asprintf_chk (char **__restrict __ptr, int __flag,
<span class="lineNum">     134 </span>                :                            __const char *__restrict __fmt, ...)
<span class="lineNum">     135 </span>                :      __THROW __attribute__ ((__format__ (__printf__, 3, 4))) __wur;
<span class="lineNum">     136 </span>                : extern int __vasprintf_chk (char **__restrict __ptr, int __flag,
<span class="lineNum">     137 </span>                :                             __const char *__restrict __fmt, _G_va_list __arg)
<span class="lineNum">     138 </span>                :      __THROW __attribute__ ((__format__ (__printf__, 3, 0))) __wur;
<span class="lineNum">     139 </span>                : extern int __dprintf_chk (int __fd, int __flag, __const char *__restrict __fmt,
<span class="lineNum">     140 </span>                :                           ...) __attribute__ ((__format__ (__printf__, 3, 4)));
<span class="lineNum">     141 </span>                : extern int __vdprintf_chk (int __fd, int __flag,
<span class="lineNum">     142 </span>                :                            __const char *__restrict __fmt, _G_va_list __arg)
<span class="lineNum">     143 </span>                :      __attribute__ ((__format__ (__printf__, 3, 0)));
<span class="lineNum">     144 </span>                : extern int __obstack_printf_chk (struct obstack *__restrict __obstack,
<span class="lineNum">     145 </span>                :                                  int __flag, __const char *__restrict __format,
<span class="lineNum">     146 </span>                :                                  ...)
<span class="lineNum">     147 </span>                :      __THROW __attribute__ ((__format__ (__printf__, 3, 4)));
<span class="lineNum">     148 </span>                : extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack,
<span class="lineNum">     149 </span>                :                                   int __flag,
<span class="lineNum">     150 </span>                :                                   __const char *__restrict __format,
<span class="lineNum">     151 </span>                :                                   _G_va_list __args)
<span class="lineNum">     152 </span>                :      __THROW __attribute__ ((__format__ (__printf__, 3, 0)));
<span class="lineNum">     153 </span>                : 
<span class="lineNum">     154 </span>                : #  ifdef __va_arg_pack
<span class="lineNum">     155 </span>                : __extern_always_inline int
<span class="lineNum">     156 </span><span class="lineNoCov">              0 : __NTH (asprintf (char **__restrict __ptr, __const char *__restrict __fmt, ...))</span>
<span class="lineNum">     157 </span>                : {
<span class="lineNum">     158 </span>                :   return __asprintf_chk (__ptr, __USE_FORTIFY_LEVEL - 1, __fmt,
<span class="lineNum">     159 </span><span class="lineNoCov">              0 :                          __va_arg_pack ());</span>
<span class="lineNum">     160 </span>                : }
<span class="lineNum">     161 </span>                : 
<span class="lineNum">     162 </span>                : __extern_always_inline int
<span class="lineNum">     163 </span><span class="lineNoCov">              0 : __NTH (__asprintf (char **__restrict __ptr, __const char *__restrict __fmt,</span>
<span class="lineNum">     164 </span>                :                    ...))
<span class="lineNum">     165 </span>                : {
<span class="lineNum">     166 </span>                :   return __asprintf_chk (__ptr, __USE_FORTIFY_LEVEL - 1, __fmt,
<span class="lineNum">     167 </span><span class="lineNoCov">              0 :                          __va_arg_pack ());</span>
<span class="lineNum">     168 </span>                : }
<span class="lineNum">     169 </span>                : 
<span class="lineNum">     170 </span>                : __extern_always_inline int
<span class="lineNum">     171 </span><span class="lineNoCov">              0 : dprintf (int __fd, __const char *__restrict __fmt, ...)</span>
<span class="lineNum">     172 </span>                : {
<span class="lineNum">     173 </span>                :   return __dprintf_chk (__fd, __USE_FORTIFY_LEVEL - 1, __fmt,
<span class="lineNum">     174 </span><span class="lineNoCov">              0 :                         __va_arg_pack ());</span>
<span class="lineNum">     175 </span>                : }
<span class="lineNum">     176 </span>                : 
<span class="lineNum">     177 </span>                : __extern_always_inline int
<span class="lineNum">     178 </span><span class="lineNoCov">              0 : __NTH (obstack_printf (struct obstack *__restrict __obstack,</span>
<span class="lineNum">     179 </span>                :                        __const char *__restrict __fmt, ...))
<span class="lineNum">     180 </span>                : {
<span class="lineNum">     181 </span>                :   return __obstack_printf_chk (__obstack, __USE_FORTIFY_LEVEL - 1, __fmt,
<span class="lineNum">     182 </span><span class="lineNoCov">              0 :                                __va_arg_pack ());</span>
<span class="lineNum">     183 </span>                : }
<span class="lineNum">     184 </span>                : #  elif !defined __cplusplus
<span class="lineNum">     185 </span>                : #   define asprintf(ptr, ...) \
<span class="lineNum">     186 </span>                :   __asprintf_chk (ptr, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
<span class="lineNum">     187 </span>                : #   define __asprintf(ptr, ...) \
<span class="lineNum">     188 </span>                :   __asprintf_chk (ptr, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
<span class="lineNum">     189 </span>                : #   define dprintf(fd, ...) \
<span class="lineNum">     190 </span>                :   __dprintf_chk (fd, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
<span class="lineNum">     191 </span>                : #   define obstack_printf(obstack, ...) \
<span class="lineNum">     192 </span>                :   __obstack_printf_chk (obstack, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
<span class="lineNum">     193 </span>                : #  endif
<span class="lineNum">     194 </span>                : 
<span class="lineNum">     195 </span>                : __extern_always_inline int
<span class="lineNum">     196 </span><span class="lineNoCov">              0 : __NTH (vasprintf (char **__restrict __ptr, __const char *__restrict __fmt,</span>
<span class="lineNum">     197 </span>                :                   _G_va_list __ap))
<span class="lineNum">     198 </span>                : {
<span class="lineNum">     199 </span><span class="lineNoCov">              0 :   return __vasprintf_chk (__ptr, __USE_FORTIFY_LEVEL - 1, __fmt, __ap);</span>
<span class="lineNum">     200 </span>                : }
<span class="lineNum">     201 </span>                : 
<span class="lineNum">     202 </span>                : __extern_always_inline int
<span class="lineNum">     203 </span><span class="lineNoCov">              0 : vdprintf (int __fd, __const char *__restrict __fmt, _G_va_list __ap)</span>
<span class="lineNum">     204 </span>                : {
<span class="lineNum">     205 </span><span class="lineNoCov">              0 :   return __vdprintf_chk (__fd, __USE_FORTIFY_LEVEL - 1, __fmt, __ap);</span>
<span class="lineNum">     206 </span>                : }
<span class="lineNum">     207 </span>                : 
<span class="lineNum">     208 </span>                : __extern_always_inline int
<span class="lineNum">     209 </span><span class="lineNoCov">              0 : __NTH (obstack_vprintf (struct obstack *__restrict __obstack,</span>
<span class="lineNum">     210 </span>                :                         __const char *__restrict __fmt, _G_va_list __ap))
<span class="lineNum">     211 </span>                : {
<span class="lineNum">     212 </span>                :   return __obstack_vprintf_chk (__obstack, __USE_FORTIFY_LEVEL - 1, __fmt,
<span class="lineNum">     213 </span><span class="lineNoCov">              0 :                                 __ap);</span>
<span class="lineNum">     214 </span>                : }
<span class="lineNum">     215 </span>                : 
<span class="lineNum">     216 </span>                : # endif
<span class="lineNum">     217 </span>                : 
<span class="lineNum">     218 </span>                : #endif
<span class="lineNum">     219 </span>                : 
<span class="lineNum">     220 </span>                : extern char *__gets_chk (char *__str, size_t) __wur;
<span class="lineNum">     221 </span>                : extern char *__REDIRECT (__gets_warn, (char *__str), gets)
<span class="lineNum">     222 </span>                :      __wur __warnattr (&quot;please use fgets or getline instead, gets can't &quot;
<span class="lineNum">     223 </span>                :                        &quot;specify buffer size&quot;);
<span class="lineNum">     224 </span>                : 
<span class="lineNum">     225 </span>                : __extern_always_inline __wur char *
<span class="lineNum">     226 </span><span class="lineNoCov">              0 : gets (char *__str)</span>
<span class="lineNum">     227 </span>                : {
<span class="lineNum">     228 </span><span class="lineNoCov">              0 :   if (__bos (__str) != (size_t) -1)</span>
<span class="lineNum">     229 </span><span class="lineNoCov">              0 :     return __gets_chk (__str, __bos (__str));</span>
<span class="lineNum">     230 </span><span class="lineNoCov">              0 :   return __gets_warn (__str);</span>
<span class="lineNum">     231 </span>                : }
<span class="lineNum">     232 </span>                : 
<span class="lineNum">     233 </span>                : extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
<span class="lineNum">     234 </span>                :                           FILE *__restrict __stream) __wur;
<span class="lineNum">     235 </span>                : extern char *__REDIRECT (__fgets_alias,
<span class="lineNum">     236 </span>                :                          (char *__restrict __s, int __n,
<span class="lineNum">     237 </span>                :                           FILE *__restrict __stream), fgets) __wur;
<span class="lineNum">     238 </span>                : extern char *__REDIRECT (__fgets_chk_warn,
<span class="lineNum">     239 </span>                :                          (char *__restrict __s, size_t __size, int __n,
<span class="lineNum">     240 </span>                :                           FILE *__restrict __stream), __fgets_chk)
<span class="lineNum">     241 </span>                :      __wur __warnattr (&quot;fgets called with bigger size than length &quot;
<span class="lineNum">     242 </span>                :                        &quot;of destination buffer&quot;);
<span class="lineNum">     243 </span>                : 
<span class="lineNum">     244 </span>                : __extern_always_inline __wur char *
<span class="lineNum">     245 </span><span class="lineNoCov">              0 : fgets (char *__restrict __s, int __n, FILE *__restrict __stream)</span>
<span class="lineNum">     246 </span>                : {
<span class="lineNum">     247 </span><span class="lineNoCov">              0 :   if (__bos (__s) != (size_t) -1)</span>
<span class="lineNum">     248 </span>                :     {
<span class="lineNum">     249 </span><span class="lineNoCov">              0 :       if (!__builtin_constant_p (__n) || __n &lt;= 0)</span>
<span class="lineNum">     250 </span><span class="lineNoCov">              0 :         return __fgets_chk (__s, __bos (__s), __n, __stream);</span>
<span class="lineNum">     251 </span>                : 
<span class="lineNum">     252 </span><span class="lineNoCov">              0 :       if ((size_t) __n &gt; __bos (__s))</span>
<span class="lineNum">     253 </span><span class="lineNoCov">              0 :         return __fgets_chk_warn (__s, __bos (__s), __n, __stream);</span>
<span class="lineNum">     254 </span>                :     }
<span class="lineNum">     255 </span><span class="lineNoCov">              0 :   return __fgets_alias (__s, __n, __stream);</span>
<span class="lineNum">     256 </span>                : }
<span class="lineNum">     257 </span>                : 
<span class="lineNum">     258 </span>                : extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen,
<span class="lineNum">     259 </span>                :                            size_t __size, size_t __n,
<span class="lineNum">     260 </span>                :                            FILE *__restrict __stream) __wur;
<span class="lineNum">     261 </span>                : extern size_t __REDIRECT (__fread_alias,
<span class="lineNum">     262 </span>                :                           (void *__restrict __ptr, size_t __size,
<span class="lineNum">     263 </span>                :                            size_t __n, FILE *__restrict __stream),
<span class="lineNum">     264 </span>                :                           fread) __wur;
<span class="lineNum">     265 </span>                : extern size_t __REDIRECT (__fread_chk_warn,
<span class="lineNum">     266 </span>                :                           (void *__restrict __ptr, size_t __ptrlen,
<span class="lineNum">     267 </span>                :                            size_t __size, size_t __n,
<span class="lineNum">     268 </span>                :                            FILE *__restrict __stream),
<span class="lineNum">     269 </span>                :                           __fread_chk)
<span class="lineNum">     270 </span>                :      __wur __warnattr (&quot;fread called with bigger size * nmemb than length &quot;
<span class="lineNum">     271 </span>                :                        &quot;of destination buffer&quot;);
<span class="lineNum">     272 </span>                : 
<span class="lineNum">     273 </span>                : __extern_always_inline __wur size_t
<span class="lineNum">     274 </span>                : fread (void *__restrict __ptr, size_t __size, size_t __n,
<span class="lineNum">     275 </span><span class="lineNoCov">              0 :        FILE *__restrict __stream)</span>
<span class="lineNum">     276 </span>                : {
<span class="lineNum">     277 </span><span class="lineCov">      369268848 :   if (__bos0 (__ptr) != (size_t) -1)</span>
<span class="lineNum">     278 </span>                :     {
<span class="lineNum">     279 </span><span class="lineCov">      369268848 :       if (!__builtin_constant_p (__size)</span>
<span class="lineNum">     280 </span>                :           || !__builtin_constant_p (__n)
<span class="lineNum">     281 </span>                :           || (__size | __n) &gt;= (((size_t) 1) &lt;&lt; (8 * sizeof (size_t) / 2)))
<span class="lineNum">     282 </span><span class="lineNoCov">              0 :         return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);</span>
<span class="lineNum">     283 </span>                : 
<span class="lineNum">     284 </span><span class="lineCov">      369268848 :       if (__size * __n &gt; __bos0 (__ptr))</span>
<span class="lineNum">     285 </span><span class="lineNoCov">              0 :         return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);</span>
<span class="lineNum">     286 </span>                :     }
<span class="lineNum">     287 </span><span class="lineCov">      369268848 :   return __fread_alias (__ptr, __size, __n, __stream);</span>
<span class="lineNum">     288 </span>                : }
<span class="lineNum">     289 </span>                : 
<span class="lineNum">     290 </span>                : #ifdef __USE_GNU
<span class="lineNum">     291 </span>                : extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size,
<span class="lineNum">     292 </span>                :                                    int __n, FILE *__restrict __stream) __wur;
<span class="lineNum">     293 </span>                : extern char *__REDIRECT (__fgets_unlocked_alias,
<span class="lineNum">     294 </span>                :                          (char *__restrict __s, int __n,
<span class="lineNum">     295 </span>                :                           FILE *__restrict __stream), fgets_unlocked) __wur;
<span class="lineNum">     296 </span>                : extern char *__REDIRECT (__fgets_unlocked_chk_warn,
<span class="lineNum">     297 </span>                :                          (char *__restrict __s, size_t __size, int __n,
<span class="lineNum">     298 </span>                :                           FILE *__restrict __stream), __fgets_unlocked_chk)
<span class="lineNum">     299 </span>                :      __wur __warnattr (&quot;fgets_unlocked called with bigger size than length &quot;
<span class="lineNum">     300 </span>                :                        &quot;of destination buffer&quot;);
<span class="lineNum">     301 </span>                : 
<span class="lineNum">     302 </span>                : __extern_always_inline __wur char *
<span class="lineNum">     303 </span><span class="lineNoCov">              0 : fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream)</span>
<span class="lineNum">     304 </span>                : {
<span class="lineNum">     305 </span><span class="lineNoCov">              0 :   if (__bos (__s) != (size_t) -1)</span>
<span class="lineNum">     306 </span>                :     {
<span class="lineNum">     307 </span><span class="lineNoCov">              0 :       if (!__builtin_constant_p (__n) || __n &lt;= 0)</span>
<span class="lineNum">     308 </span><span class="lineNoCov">              0 :         return __fgets_unlocked_chk (__s, __bos (__s), __n, __stream);</span>
<span class="lineNum">     309 </span>                : 
<span class="lineNum">     310 </span><span class="lineNoCov">              0 :       if ((size_t) __n &gt; __bos (__s))</span>
<span class="lineNum">     311 </span><span class="lineNoCov">              0 :         return __fgets_unlocked_chk_warn (__s, __bos (__s), __n, __stream);</span>
<span class="lineNum">     312 </span>                :     }
<span class="lineNum">     313 </span><span class="lineNoCov">              0 :   return __fgets_unlocked_alias (__s, __n, __stream);</span>
<span class="lineNum">     314 </span>                : }
<span class="lineNum">     315 </span>                : #endif
<span class="lineNum">     316 </span>                : 
<span class="lineNum">     317 </span>                : #ifdef __USE_MISC
<span class="lineNum">     318 </span>                : # undef fread_unlocked
<span class="lineNum">     319 </span>                : extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen,
<span class="lineNum">     320 </span>                :                                     size_t __size, size_t __n,
<span class="lineNum">     321 </span>                :                                     FILE *__restrict __stream) __wur;
<span class="lineNum">     322 </span>                : extern size_t __REDIRECT (__fread_unlocked_alias,
<span class="lineNum">     323 </span>                :                           (void *__restrict __ptr, size_t __size,
<span class="lineNum">     324 </span>                :                            size_t __n, FILE *__restrict __stream),
<span class="lineNum">     325 </span>                :                           fread_unlocked) __wur;
<span class="lineNum">     326 </span>                : extern size_t __REDIRECT (__fread_unlocked_chk_warn,
<span class="lineNum">     327 </span>                :                           (void *__restrict __ptr, size_t __ptrlen,
<span class="lineNum">     328 </span>                :                            size_t __size, size_t __n,
<span class="lineNum">     329 </span>                :                            FILE *__restrict __stream),
<span class="lineNum">     330 </span>                :                           __fread_unlocked_chk)
<span class="lineNum">     331 </span>                :      __wur __warnattr (&quot;fread_unlocked called with bigger size * nmemb than &quot;
<span class="lineNum">     332 </span>                :                        &quot;length of destination buffer&quot;);
<span class="lineNum">     333 </span>                : 
<span class="lineNum">     334 </span>                : __extern_always_inline __wur size_t
<span class="lineNum">     335 </span>                : fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n,
<span class="lineNum">     336 </span><span class="lineNoCov">              0 :                 FILE *__restrict __stream)</span>
<span class="lineNum">     337 </span>                : {
<span class="lineNum">     338 </span><span class="lineNoCov">              0 :   if (__bos0 (__ptr) != (size_t) -1)</span>
<span class="lineNum">     339 </span>                :     {
<span class="lineNum">     340 </span><span class="lineNoCov">              0 :       if (!__builtin_constant_p (__size)</span>
<span class="lineNum">     341 </span>                :           || !__builtin_constant_p (__n)
<span class="lineNum">     342 </span>                :           || (__size | __n) &gt;= (((size_t) 1) &lt;&lt; (8 * sizeof (size_t) / 2)))
<span class="lineNum">     343 </span>                :         return __fread_unlocked_chk (__ptr, __bos0 (__ptr), __size, __n,
<span class="lineNum">     344 </span><span class="lineNoCov">              0 :                                      __stream);</span>
<span class="lineNum">     345 </span>                : 
<span class="lineNum">     346 </span><span class="lineNoCov">              0 :       if (__size * __n &gt; __bos0 (__ptr))</span>
<span class="lineNum">     347 </span>                :         return __fread_unlocked_chk_warn (__ptr, __bos0 (__ptr), __size, __n,
<span class="lineNum">     348 </span><span class="lineNoCov">              0 :                                           __stream);</span>
<span class="lineNum">     349 </span>                :     }
<span class="lineNum">     350 </span>                : 
<span class="lineNum">     351 </span>                : # ifdef __USE_EXTERN_INLINES
<span class="lineNum">     352 </span><span class="lineNoCov">              0 :   if (__builtin_constant_p (__size)</span>
<span class="lineNum">     353 </span>                :       &amp;&amp; __builtin_constant_p (__n)
<span class="lineNum">     354 </span>                :       &amp;&amp; (__size | __n) &lt; (((size_t) 1) &lt;&lt; (8 * sizeof (size_t) / 2))
<span class="lineNum">     355 </span>                :       &amp;&amp; __size * __n &lt;= 8)
<span class="lineNum">     356 </span>                :     {
<span class="lineNum">     357 </span><span class="lineNoCov">              0 :       size_t __cnt = __size * __n;</span>
<span class="lineNum">     358 </span><span class="lineNoCov">              0 :       char *__cptr = (char *) __ptr;</span>
<span class="lineNum">     359 </span><span class="lineNoCov">              0 :       if (__cnt == 0)</span>
<span class="lineNum">     360 </span><span class="lineNoCov">              0 :         return 0;</span>
<span class="lineNum">     361 </span>                : 
<span class="lineNum">     362 </span><span class="lineNoCov">              0 :       for (; __cnt &gt; 0; --__cnt)</span>
<span class="lineNum">     363 </span>                :         {
<span class="lineNum">     364 </span><span class="lineNoCov">              0 :           int __c = _IO_getc_unlocked (__stream);</span>
<span class="lineNum">     365 </span><span class="lineNoCov">              0 :           if (__c == EOF)</span>
<span class="lineNum">     366 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     367 </span><span class="lineNoCov">              0 :           *__cptr++ = __c;</span>
<span class="lineNum">     368 </span>                :         }
<span class="lineNum">     369 </span><span class="lineNoCov">              0 :       return (__cptr - (char *) __ptr) / __size;</span>
<span class="lineNum">     370 </span>                :     }
<span class="lineNum">     371 </span>                : # endif
<span class="lineNum">     372 </span><span class="lineNoCov">              0 :   return __fread_unlocked_alias (__ptr, __size, __n, __stream);</span>
<span class="lineNum">     373 </span>                : }
<span class="lineNum">     374 </span>                : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
